// CrossStitchView.h : interface of the CCrossStitchView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CROSSSTITCHVIEW_H__D9F0D00D_1215_4518_812B_B2C9BC89E008__INCLUDED_)
#define AFX_CROSSSTITCHVIEW_H__D9F0D00D_1215_4518_812B_B2C9BC89E008__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

enum {EM_SEL, EM_PEN, EM_PAIL, EM_NUM};
enum {MS_DOWN, MS_UP };

class CCrossStitchView : public CScrollView
{
protected: // create from serialization only
	CCrossStitchView();
	DECLARE_DYNCREATE(CCrossStitchView)

// Attributes
public:
	CCrossStitchDoc* GetDocument();

	UINT m_EditMode;
	FLOSS* m_pSelFloss;

	CPoint m_OldPoint;
	int m_MBStatus;

	int m_xTable;
	int m_yTable;

	int m_xPattern;
	int m_yPattern;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCrossStitchView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	BOOL m_hasRules;
	virtual ~CCrossStitchView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CCrossStitchView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	virtual void OnInitialUpdate();
protected:
	virtual void OnUpdate(CView* /*pSender*/, LPARAM /*lHint*/, CObject* /*pHint*/);
public:
//	afx_msg void OnDestroy();
protected:
	virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
public:
//	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
protected:
//	virtual void OnActivateFrame(UINT nState, CFrameWnd* pDeactivateFrame);
};

#ifndef _DEBUG  // debug version in CrossStitchView.cpp
inline CCrossStitchDoc* CCrossStitchView::GetDocument()
   { return (CCrossStitchDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CROSSSTITCHVIEW_H__D9F0D00D_1215_4518_812B_B2C9BC89E008__INCLUDED_)
